<script src="<?php echo $theme;?>/util/jquery.MultiFile.pack.js" type="text/javascript"></script>

<form method="post" enctype="multipart/form-data">
<table class='form' border=0>
<tr>
	<td class='head' colspan=3>添加<?php echo $proto['pro_title']?>信息</td>
</tr>
<tr>
	<td class='title'>标题</td>
	<td class='data'><input type="text" name="node_title" size=40 maxlength=50 /></td>
	<td class='desc'><?php echo $proto['pro_title']?>主要名称</td>
</tr>
<tr>
	<td class='title'>描述</td>
	<td class='data'>
		<input type="button" value="自定义" onclick="$(this).hide();$('#desc_frame').show();" />
		<div id='desc_frame' style='display:none'>
			<textarea name='node_desc' id='node_desc' rows='4' cols='46'></textarea>
			<script>maxLen('node_desc',300);</script>
		</div>
	</td>
	<td class='desc'>简要文字描述，以列表等形式显示时出现，留空则取自定义描述的值</td>
</tr>
<tr>
	<td class='title'>图片</td>
	<td class='data'>
		<input type="file" id="node_img" name="node_img[]" size=30 maxlength='5' class="multi" accept="gif|jpg|bmp|png" />
		<div id="upload_list"></div>
<?php if(!empty($lost_imgs)){?>
		<div>
			<h3>下列是未成功保存的图片，提交时增加到此<?php echo $proto['pro_title']?></h3>
			<?php
			foreach($lost_imgs as $key){
				echo '<img src="'.url_img($key,'121').'"/> ';
			}
			?>
		</div>
<?php }?>
	</td>
	<td class='desc'></td>
</tr>
<?php echo $proto_show ?>
<tr>
	<td class='foot' colspan=3>
		<input type="button" value="返回" onclick="location.href='<?php echo url('node')?>'"/> &nbsp;
		<input type="submit" value="保存" />
	</td>
</tr>
</table>
</form>

<script>
$('#node_img').MultiFile({list:'#upload_list'});
</script>
